package com.shijiu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Author xlj
 * @Date Created in  2023/4/19 17:12
 * @DESCRIPTION:
 * @Version V1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Sign {
   @TableId( type = IdType.AUTO)
   @NotNull(message = "id不能为空")
   private Integer id;

   @ApiModelProperty("商家id")
   private Integer shopId;

   @ApiModelProperty("用户名称")
   private String username;

   @ApiModelProperty("打卡位置")
   private String location;

   @ApiModelProperty("打卡时间")
   @JsonFormat(pattern = "yyyy-MM-dd HH:MM:SS", timezone = "GMT+8")
   private Date dakaTime;

   @ApiModelProperty("备注")
   private String comments;

   @ApiModelProperty("是否删除")
   private String isdeleted;

   @ApiModelProperty("打卡次数")
   private Integer ClockingRecords;

   @ApiModelProperty("打卡积分")
   private Integer integral;

   @ApiModelProperty("更新时间")
   private Date updateTime;
}
